<div id="error"></div>
<?php
    if($this->dataGenset == null && $this->database == null){
        if($this->action != 'edit' && $this->action != 'add')
        {
            echo '<div class="notfound">Genset Has Not Been Added</div>';
        }
    }
?>
<table id="tabelgenset">
    <thead>
        <tr><td>Serial Number</td><td>Tipe Mesin</td><td>Daya KVa</td><?php if($this->action == 'edit' || $this->action == 'add') {?><td></td><?php } ?></tr>
    </thead>
    <tbody id="dataGenset">
        <?php
        if($this->dataGenset != null) {
            echo $this->partial('partials/dataGenset.phtml',array('dataGenset' => $this->dataGenset, 'action' => $this->action));
        }
        if($this->database != null) {
            echo $this->partial('partials/dataGenset.phtml',array('dataGenset' => $this->database, 'action' => $this->action));
        }
          
        ?>
    </tbody>
</table>
